const handleFormatData = (data) => {
  return data.reduce((pre1, next1) => {
    next1.cities = next1.cities.reduce((pre2, next2) => {
      next2.counties = next2.counties.reduce((pre3, next3) => {
        pre3[next3.countyName] = next3;
        return pre3;
      }, {})
      pre2[next2.cityName] = next2;
      return pre2;
    }, {})
    pre1[next1.provinceName] = next1;
    return pre1;
  }, {})
}

export {
  handleFormatData,
}